﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace PJ.Data.SalePurchase.Sale
{
    [Serializable]
    [DataContract]
    public class BaseSaleInvoiceData : BaseEntityData, ISaleInvoiceData
    {
        public BaseSaleInvoiceData()
        {
        }
        public BaseSaleInvoiceData(BaseSaleInvoiceData data)
        {
            Init(data);   
        }
        public sealed override IObjectData Init(IObjectData data)
        {
            return base.Init(data);
        }
        public override IObjectData CreateNewInstance()
        {
            return new BaseSaleInvoiceData();
        }

        private string _OwnerId;

        [DataMember]
        public string OwnerId
        {
            get { return _OwnerId; }
            set { _OwnerId = value; }
        }

        private string _Reference;

        [DataMember]
        public string Reference
        {
            get { return _Reference; }
            set { _Reference = value; }
        }

        private string _Total;

        [DataMember]
        public string Total
        {
            get { return _Total; }
            set { _Total = value; }
        }

    }
}
